package main

import (
	"flag"
	"fmt"
)

var configFile = flag.String("f", "products.yml", "设置viper读取的配置文件")

func main() {
	flag.Parse()
	app, err := CreateApp(fmt.Sprintf("configs/%s", *configFile))
	if err != nil {
		panic(err)
	}
	if err = app.Start(); err != nil {
		panic(err)
	}
	app.AwaitSignal()

}
